import Vue from 'vue'
var sysConfig = require('./sysConfig')
export default {
  // 获得token令牌
  getToken () {
    let token = Vue.prototype.$cookies.get(sysConfig.tokenName)
    if (token) {
      token = 'Bearer ' + token
    } else {
      token = null
    }
    return token
  }
}
